﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@model PessModel.Rule

@{
    ViewBag.Title = "Create";
}

<div id="m-title">
    <h2>创建评分规则</h2>
    <div id="m-op">
        @Html.ActionLink("返回评分详细信息", "Details", "Rule", new { subjectID = ViewBag.SubjectID }, null)
    </div>
</div>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="fly-edit">

        @Html.Hidden("SubjectID",(int)ViewBag.SubjectID)

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Name)*@名称
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label fly">
            @*@Html.LabelFor(model => model.Description)*@说明
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Value)*@分数
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Value)
            @Html.ValidationMessageFor(model => model.Value)
        </div>

        <div class="editor-label">
            输入控件
        </div>
        <div class="editor-field">
            @Html.RadioButtonFor(model=>model.InputControl,(int)PessModel.InputControlMode.TextBox) <span>文本框</span>
            @Html.RadioButtonFor(model=>model.InputControl,(int)PessModel.InputControlMode.DropDownList) <span>下拉框</span>
    @Html.ValidationMessageFor(model => model.InputControl)
    @*  @Html.RadioButtonFor(model=>model.InputControl,1,Model.InputControl==(int)PessModel.InputControlMode.TextBox) 文本框
        @Html.RadioButtonFor(model=>model.InputControl,2,Model.InputControl==(int)PessModel.InputControlMode.DropDownList) 下拉框
        @Html.ValidationMessageFor(model => model.InputControl)*@
</div>

        <div class="editor-label">
        </div>
        <div class="editor-field">
            <input type="submit" value="新建" class="u-btn u-btn-save3" />
        </div>
    </fieldset>
}

@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
`